<?php

class bookmarkComponents extends sfComponents
{
  public function executeLastLinks(sfWebRequest $request)
  {
    $this->links = Doctrine_Core::getTable('BlogBookmark')->getLastPublishedLinks(
      sfConfig::get('app_bookmarks_max_in_sidebar', 10)
    );
  }
}